<!DOCTYPE html>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
	<style type="text/css">
	body, html,#allmap {width: 100%;height: 100%;overflow: hidden;margin:0;font-family:"微软雅黑";}
	</style>
	<script type="text/javascript" src="http://api.map.baidu.com/api?v=2.0&ak=akqk3IcgofSOiEdheKZocsqdSyFguxpT"></script>
    <title>地图展示</title>
    <style>
        #allmap{
            width: 500px;
            height: 500px;
            margin: 0 auto;
        }
    </style>
</head>
<body>
	<div id="allmap"></div>
</body>
</html>
<script type="text/javascript">
		var map = new BMap.Map("allmap");
	var point = new BMap.Point(111.037886,35.041299);
	map.centerAndZoom(point, 15);
	var marker = new BMap.Marker(point);  // 创建标注
	map.addOverlay(marker);               // 将标注添加到地图中
    marker.setAnimation(BMAP_ANIMATION_BOUNCE); //跳动的动画
    map.enableScrollWheelZoom(true);
    var map = new BMap.Map("container"); 
    map.centerAndZoom(new BMap.Point(116.404, 39.915), 14); 
    var driving = new BMap.DrivingRoute(map, { 
    renderOptions: { 
        map: map, 
        autoViewport: true 
        }
    }); 
    var start = new BMap.Point(115.843538,39.960691);
    var end = new BMap.Point(111.796132,35.581763);
    driving.search(start, end);
</script>
